import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import Home from './views/Home.vue'
import Classify from './views/Classify.vue'
import Order from './views/Order.vue'
import My from './views/My.vue'

Vue.config.productionTip = false
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component:Home
  },
  {
    path: '/classify',
    component:Classify
  },
  {
    path: '/order',
    component:Order
  },
  {
    path: '/my',
    component:My
  },
]
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
